package cn.niit.letuseatdemo.service.impl;

import cn.niit.letuseatdemo.entity.domain.User;
import cn.niit.letuseatdemo.mapper.UserMapper;
import cn.niit.letuseatdemo.service.UserRegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author Zhang Shiqi
 * @CreateTime 2022/10/26 19:40
 */
@Service
public class UserRegisterServiceImpl implements UserRegisterService {
    @Autowired
    private UserMapper userMapper;

    /*
    * @Description: 用于用户注册
    * @Author: Zhang Shiqi
    * @CreateTime： 2022/10/30 23:49
     * @param: user
     * @return: int
    **/
    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }
}
